#! /usr/bin/python
# -*- coding: utf-8 -*-
#-----------------------------------------------------------------------------
# Name:     general_test.py
# Purpose: General testing program for unioc-ng 
# Author:   Fabien Marteau <fabien.marteau@armadeus.com>
# Created:  22/11/2008
#-----------------------------------------------------------------------------
#  Copyright (2008)  Armadeus Systems
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#-----------------------------------------------------------------------------
# Revision list :
#
# Date       By        Changes
#
#-----------------------------------------------------------------------------

__doc__ = ""
__author__ = "Fabien Marteau <fabien.marteau@armadeus.com>"

import sys
import os

from error     import Error
from bootstrap import BootStrap

def consoleDump(tid):
    while 1:
        sys.stdout.write(tid.read(1))

def waitForPositiveResponse(charok,error_message):
    response = raw_input().strip()
    if response != charok:
        raise Error(error_message,0)


if __name__ == "__main__":
    print "********************************************"
    print "* This is the testing program for unioc-ng.*"
    print "* Version 0.1                              *"
    print "* To ensure a good card functionning       *"
    print "* follow the instruction.                  *"
    print "********************************************"

    print " Powering ..."
    print "* Program atmega bootstrap with JTAG"
    raw_input()
    print "* Configure fpga with GPIO ip"
    raw_input()
    print "* Branch shunts"
    raw_input()
    
